package com.kgc.scd.Controller;

import com.kgc.scd.service.ShopUserServerService;
import com.kgc.scd.vo.ShopUserVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created On : 2022/11/16.
 * <p>
 * Author : Administrator
 * <p>
 * Description: ShopUserServerController
 */
@Slf4j
@RestController
@Api(tags = "用户接口")
public class ShopUserServerController {


    @Autowired
    private ShopUserServerService shopUserServerService;

    @GetMapping("/getShopUser")
    @ApiOperation(value = "获取用户信息",notes = "基于mybatis-plus")
    public ShopUserVO getShopUser(String userId){

        return  shopUserServerService.getShopUserById(userId);
    }



}
